package android.longs.study.sign.dao;

import java.util.List;

import android.longs.study.sign.model.UserSignModel;

public interface UserSignDao {
    
    UserSignModel addUserSignModel(UserSignModel model);
    
    void updateUserSignModel(UserSignModel model);
    
    //查询 根据用户的 ID
    List<UserSignModel> queryAll();
    List<UserSignModel> queryAllFromUserId(String userId);
    List<UserSignModel> queryAllFromUserId(String userId,int index,int typeNumber);
    List<UserSignModel> queryAllFromUserClassId(String classId,int index,int typeNumber);
    
    
    //查询 根据实例ID 
    UserSignModel querSignModelFromId(int id);
    UserSignModel querSignModelFromUId(String uid);
    UserSignModel querSignModelSignInLast(String userId);
    UserSignModel querSignModelSignOutLast(String userId);
}
